package com.atguigu.gulimall.product.vo;

import com.atguigu.gulimall.product.entity.SkuImagesEntity;
import com.atguigu.gulimall.product.entity.SkuInfoEntity;
import com.atguigu.gulimall.product.entity.SpuInfoDescEntity;
import lombok.Data;

import java.util.List;

/**
 * @author kabuda
 * @create 2022-11-27 13:28
 */
@Data
public class SkuItemVo {
    //1.sku基本信息
    SkuInfoEntity info;
    boolean hasStock=true;
    //2.sku图片信息
    List<SkuImagesEntity> images;
    //3.spu销售组合信息
   List<SkuItemSaleAttrVo> saleAttr;
    //4.spu介绍
    SpuInfoDescEntity desp;
    //5.spu规格参数
    List<SpuItemGroupVo> groupAttr;

    SecKillSkuVo secKillSkuVo; //秒杀活动信息


    @Data
    public static class SkuItemSaleAttrVo{
        private Long attrId;
        private String attrName;
        private List<AttrValueWithSkuIdVo> attrValues;
    }

    @Data
    public static class SpuItemGroupVo{
        private String groupName;
        private List<SpuBaseAttrVo> attrs;
    }

    @Data
    public static class SpuBaseAttrVo{
        private String attrName;
        private String attrValue;
    }


}
